package rabbitmqConsummer.consummers;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutConsummer {
    @RabbitListener(queues = "fanoutQueue1")
    public void consume1(String message) {
        System.out.println("Fanout Consummer1 : " + message);
    }

    @RabbitListener(queues = "fanoutQueue2")
    public void consume2(String message) {
        System.out.println("Fanout Consummer2 : " + message);
    }
}
